﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sbook.AdminIstrator
{
    public partial class Category_Pro : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Data.Mysession.isLogin)
                {
                    string CID = Request.QueryString["CId"];

                    rp_Cate.DataSource = Business.CategoryService.Category_GetByAll().FindAll(c => c.cpID == "0");
                    rp_Cate.DataBind();
                }
                else
                    Response.Redirect("/AdminIstrator/Login.aspx");
            }
        }
    }
}